package com.lfy.modules.blog.domain.dto.dictionaries;

import com.lfy.modules.blog.domain.group.SaveGroup;
import com.lfy.modules.blog.domain.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

@Data
public class DictionariesDTO {
    @Null(message = "id 必须为null",groups = {SaveGroup.class})
    @NotNull(message = "id 必须不为null",groups = {UpdateGroup.class})
    private Integer id;
    @NotBlank(message = "字典名称不能为空",groups = {SaveGroup.class})
    private String dictionariesKey;
    private String dictionariesCode;
    @NotBlank(message = "字典值不能为空",groups = {SaveGroup.class})
    private String dictionariesValue;
    private String dictionariesDescription;

    private String groupName;
    private String groupKey;
}
